
<!DOCTYPE html> 
<html> 
	<head> 
	<meta charset="utf-8"> 
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<title>terencetengker.nl</title> 
	<link rel="stylesheet"  href="theme_default.css" />  
	<link rel="stylesheet"  href="jquery.mobile.scrollview.css" /> 
	<script type="text/javascript" src="jquery-1.6.1.js"></script> 
	<script type="text/javascript" src="js.js"></script> 
	<script type="text/javascript" src="jquery.easing.1.3.js"></script> 
	<script type="text/javascript" src="jquery.mobile.scrollview.js" type="text/javascript"></script> 
	<script type="text/javascript" src="scrollview.js" type="text/javascript"></script> 
    <script type="text/javascript">
      function changeCSS(cssFile, cssLinkIndex) {
        var oldlink = document.getElementsByTagName("link").item(cssLinkIndex);
        var newlink = document.createElement("link")
        newlink.setAttribute("rel", "stylesheet");
        newlink.setAttribute("type", "text/css");
        newlink.setAttribute("href", cssFile);
        document.getElementsByTagName("head").item(0).replaceChild(newlink, oldlink);
      }
    </script>
    <script type="text/javascript">
    $('#btn1').click( function() {  
    alert( this.id ); // jQuery ensures 'this' will be the button  
	}); 
	</script>    

</head> 
<body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);">
<div data-role="page" id="centered"> 
 	<div data-role="header"> 
		<h1>Test</h1> 
	</div><!-- /header --> 
 	<div data-role="content"> 

      <div id="ex4" data-scroll="xp" class="content-window"> 
        <div class="content-block" id="box0">0 <a name="box0">&nbsp </a> <a href="#" onclick="changeCSS('./css/theme_default.css', 0);">default</a></div> 
        <div class="content-block" id="box1">1 <a name="box1">&nbsp </a> <a href="#" onclick="changeCSS('./css/theme_big.css', 0);">big</a> - <a href="#box0">Goto box0</a> - <a href="#box2">Goto box2</a></div> 
        <div class="content-block" id="box2">2 <a name="box2">&nbsp </a> <a href="#box0">Goto box0</a> - <a href="#box1">Goto box1</a></div> 
        <div class="content-block" id="myDiv">3 <input type="button" value="Button" id="btn1"  />     
		<script type="text/javascript">
		$('#btn1').click( function() {scrollTo(100,0,100); }); 
		</script> 
        </div> 
        <div class="content-block">4 <input type="button" value="Button" id="myButton"  />
        <script type="text/javascript">
        $('button#myButton').click(function() {
	   //If you want a <button/> with an id of myButton that when clicked will cause you to scroll to a <div/> with and id of myDiv over the course of half a second:
	   //optionally remove the 500 (which is time in milliseconds) of the
	   //scrolling animation to remove the animation and make it instant
	   $.scrollLeft($('div#myDiv'), 500);
		});
      	</script>   
        </div> 
        <div class="content-block">5</div> 
        <div class="content-block">6</div> 
        <div class="content-block">7</div> 
        <div class="content-block">8</div> 
        <div class="content-block">9</div> 
        <div class="content-block">10</div> 
        <div class="content-block">11</div> 
        <div class="content-block">12</div> 
        <div class="content-block">13</div> 
        <div class="content-block">14</div> 
        <div class="content-block">15</div> 
        <div class="content-block">16</div> 
        <div class="content-block">r!</div> 
        <div class="content-block">s</div> 
        <div class="content-block">t </div> 
        <div class="content-block">u</div> 
        <div class="content-block">v</div> 
        <div class="content-block">w </div> 
        <div class="content-block">x</div> 
        <div class="content-block">y</div> 
        <div class="content-block">z</div> 
        <div class="content-block">0 </div> 
        <div class="content-block">1</div> 
        <div class="content-block">2</div> 
        <div class="content-block">3 </div> 
        <div class="content-block">4!</div> 
        <div class="content-block">5!</div> 
        <div class="content-block">6!</div> 
        <div class="content-block">7</div> 
        <div class="content-block">8</div> 
        <div class="content-block">9</div> 
        <div class="content-block">a</div> 
        <div class="content-block">b</div> 
        <div class="content-block">c</div> 
        <div class="content-block">d</div> 
        <div class="content-block">e</div> 
        <div class="content-block">f</div> 
        <div class="content-block">g</div> 
        <div class="content-block">h</div> 
        <div class="content-block">i</div> 
        <div class="content-block">j</div> 
        <div class="content-block">k</div> 
        <div class="content-block">l</div> 
        <div class="content-block">m</div> 
        <div class="content-block">n</div> 
        <div class="content-block">o</div> 
        <div class="content-block">p</div> 
        <div class="content-block">q</div> 
        <div class="content-block">r</div> 
        <div class="content-block">s</div> 
        <div class="content-block">t</div> 
        <div class="content-block">u</div> 
        <div class="content-block">v</div> 
        <div class="content-block">w</div> 
        <div class="content-block">x</div> 
        <div class="content-block">y</div> 
        <div class="content-block">z</div> 
        <div class="content-block">0</div> 
        <div class="content-block">1</div> 
        <div class="content-block">2</div> 
        <div class="content-block">3</div> 
        <div class="content-block">4</div> 
        <div class="content-block">5</div> 
        <div class="content-block">6</div> 
        <div class="content-block">7</div> 
        <div class="content-block">8</div> 
        <div class="content-block">9</div> 
        <div class="content-block">a</div> 
        <div class="content-block">b</div> 
        <div class="content-block">c</div> 
        <div class="content-block">d</div> 
        <div class="content-block">e</div> 
        <div class="content-block">f</div> 
        <div class="content-block">g</div> 
        <div class="content-block">h</div> 
        <div class="content-block">i</div> 
        <div class="content-block">j</div> 
        <div class="content-block">k</div> 
        <div class="content-block">l</div> 
        <div class="content-block">m</div> 
        <div class="content-block">n</div> 
        <div class="content-block">o</div> 
        <div class="content-block">p</div> 
        <div class="content-block">q</div> 
        <div class="content-block">r</div> 
        <div class="content-block">s</div> 
        <div class="content-block">t</div> 
        <div class="content-block">u</div> 
        <div class="content-block">v</div> 
        <div class="content-block">w</div> 
        <div class="content-block">x</div> 
        <div class="content-block">y</div> 
        <div class="content-block">z</div> 
        <div class="content-block">0</div> 
        <div class="content-block">1</div> 
        <div class="content-block">2</div> 
        <div class="content-block">3</div> 
        <div class="content-block">4</div> 
        <div class="content-block">5</div> 
        <div class="content-block">6</div> 
        <div class="content-block">7</div> 
        <div class="content-block">8</div> 
        <div class="content-block">9</div> 
        <div class="content-block">a</div> 
        <div class="content-block">b</div> 
        <div class="content-block">c</div> 
        <div class="content-block">d</div> 
        <div class="content-block">e</div> 
        <div class="content-block">f</div> 
        <div class="content-block">g</div> 
        <div class="content-block">h</div> 
        <div class="content-block">i</div> 
        <div class="content-block">j</div> 
        <div class="content-block">k</div> 
        <div class="content-block">l</div> 
        <div class="content-block">m</div> 
        <div class="content-block">n</div> 
        <div class="content-block">o</div> 
        <div class="content-block">p</div> 
        <div class="content-block">q</div> 
        <div class="content-block">r</div> 
        <div class="content-block">s</div> 
        <div class="content-block">t</div> 
        <div class="content-block">u</div> 
        <div class="content-block">v</div> 
        <div class="content-block">w</div> 
        <div class="content-block">x</div> 
        <div class="content-block">y</div> 
        <div class="content-block">z</div> 
        <div class="content-block">0</div> 
        <div class="content-block">1</div> 
        <div class="content-block">2</div> 
        <div class="content-block">3</div> 
        <div class="content-block">4</div> 
        <div class="content-block">5</div> 
        <div class="content-block">6</div> 
        <div class="content-block">7</div> 
        <div class="content-block">8</div> 
        <div class="content-block">9</div> 
        <div class="content-block">a</div> 
        <div class="content-block">b</div> 
        <div class="content-block">c</div> 
        <div class="content-block">d</div> 
        <div class="content-block">e</div> 
        <div class="content-block">f</div> 
        <div class="content-block">g</div> 
        <div class="content-block">h</div> 
        <div class="content-block">i</div> 
        <div class="content-block">j</div> 
        <div class="content-block">k</div> 
        <div class="content-block">l</div> 
        <div class="content-block">m</div> 
        <div class="content-block">n</div> 
        <div class="content-block">o</div> 
        <div class="content-block">p</div> 
        <div class="content-block">q</div> 
        <div class="content-block">r</div> 
        <div class="content-block">s</div> 
        <div class="content-block">t</div> 
        <div class="content-block">u</div> 
        <div class="content-block">v</div> 
        <div class="content-block">w</div> 
        <div class="content-block">x</div> 
        <div class="content-block">y</div> 
      </div><!-- /ex4 -->  
  </div><!-- /content --> 
</div><!-- /page --> 
</body> 
</html>